package com.nulstudio.cloud.inventory.client;

import com.nulstudio.cloud.common.domain.vo.WarehouseVo;
import com.nulstudio.cloud.common.util.NulResult;
import feign.FeignException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "nul-warehouse")
public interface WarehouseClient {

    @GetMapping("/warehouse/{id}")
    NulResult<WarehouseVo> getWarehouseById(@PathVariable("id") int id) throws FeignException;
}
